package com.study.algorithm.pathalgorithm.shortestpath;

import com.study.algorithm.datastruct.graph.model.Vertex;

import java.util.List;

/**
 * 节点访问路径以及与起始点的距离记录辅助类
 */

public class Trace {
    private List<Vertex> traces;//访问路径
    private int distance;

    public void setTraces(List<Vertex> traces) {
        this.traces = traces;
    }

    public List<Vertex> getTraces() {
        return traces;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }
}